package com.example.demo.control;

import java.util.HashMap;
import java.util.Map;

import com.example.demo.spark.SparkTestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class DemoControl {
	@Autowired
	private SparkTestService sparkTestService;
	
	@RequestMapping("/demo/spark")
	public Map<String, Object> sparkDemo() {
		return sparkTestService.sparkDemo();
	}

	@RequestMapping("/demo/demo")
	public Map<String, Object> demo() {
		Map<String, Object> mp = new HashMap<String, Object>();
		mp.put("ss","232");
		return mp;
	}
}
